package com.eryos.gwt.estate.client.view;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface ErrorView extends IsWidget {

    /************ Widget's Methods ************/

    void setPresenter(Presenter presenter);

    void refreshView();

    void setException(Exception exc);

    /**
     * Presenter interface and setPresenter method allow for bi-directional communication between view and presenter
     * which simplifies interactions involving repeating Widgets and also allows view implementations to use UiBinder
     * with @UiHandler methods that delegate to the presenter interface.
     */
    public interface Presenter {
        void goTo(Place place);

        /************ Presenter's Methods ************/
    }
}
